<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

 <table widht="100px" class ="hero-unit">
  <tr>  
    <th width="49" >Id_Comentario</th>
    <th width="192" >Calificacion</th>
    <th width="197" >Comentario</th>
    <th width="192" >Id_sala</th>
    <th width="192">Id_local</th> 
    
  </tr>
  
 
  
<%@page import="java.util.*,  Stragos.modelo.Comentario" %>
<%
Collection<Comentario> arreglo = (ArrayList<Comentario>)request.getAttribute("comentario");
if(arreglo != null) { 
int i = 1;
for(Comentario x : arreglo) {
%>  
  <tr>
    <td><%=i++ %></td>
    <td><%out.print(x.getIdComentario()); %></td>>
    <td><% out.print(x.getCalificacion()); %></td>
    <td><% out.print(x.getIdComentario()); %></td>
    <td><% out.print(x.getIdSala()); %></td>
   
 <%    }
    }
%>

</body>
</html>